//
//  SEGSharedTopicDetailInfoModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/10/18.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGSharedTopicDetailInfoModel.h"

@implementation SEGSharedTopicDetailInfoModel

- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _content = @"";
        _quizTypeId = @"";
        _id = @"";
        _title = @"";
        _picture = [NSArray array];
        _objType = @"";
        _objId = @"";
        _tag = @"";
        _pgcType = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forKey:(NSString*)key
{
    if ([key isEqualToString:@"picture"]) {
        if ([value isKindOfClass:[NSArray class]]) {
            _picture = value;
        }
        return;
    }
    
    [super setValue:value forKey:key];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setContent:(NSString*)content{
    _content = [[SEGUtils ValueToString:content]copy];
}
- (void)setQuizTypeId:(NSString*)quizTypeId{
    _quizTypeId = [[SEGUtils ValueToString:quizTypeId]copy];
}
- (void)setId:(NSString*)id{
    _id = [[SEGUtils ValueToString:id]copy];
}
- (void)setTitle:(NSString*)title{
    _title = [[SEGUtils ValueToString:title]copy];
}
- (void)setObjType:(NSString*)objType{
    _objType = [[SEGUtils ValueToString:objType]copy];
}
- (void)setObjId:(NSString*)objId{
    _objId = [[SEGUtils ValueToString:objId]copy];
}
- (void)setTag:(NSString*)tag{
    _tag = [[SEGUtils ValueToString:tag]copy];
}
@end
